﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Data.Objects;
using System.Data.SqlClient;
using HPCERP.Model;
using HPCERP.SetupDatabase;

namespace HPCERP.ConsoleSetup
{
    class Program
    {
        static void Main(string[] args)
        {
            string sLine;
            DisplayMenu();
            while ((sLine = Console.ReadLine()) != "9")
            {
                switch (sLine)
                {
                    case "1":
                        SetupDatabase();
                        break;
                    case "2":
                        Clean();
                        break;
                }
                DisplayMenu();
            }
        }

        private static void Clean()
        {
            CleanDatabase obj = new CleanDatabase();
            obj.Clean();
        }



        private static void DisplayMenu()
        {
            Console.WriteLine("HPC ERP Setup Application");
            Console.WriteLine("1 - Setup Database");
            Console.WriteLine("2 - Clean Datatase");
            Console.WriteLine("9 - Exit");
        }

        private static void SetupDatabase()
        {
            SetupTestCompany obj = new SetupTestCompany();
            obj.CreateTestCompany();
        }
    }
}
